<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>Test your knowledge!!</title>
	<ui:insert name="script"></ui:insert>	
</h:head>
<h:body>
	<h:outputStylesheet name="css/default.css"/>
	<h:outputScript name="js/script.js" target="head"/>
	
	<div id="wrapper">
		<div id="root">
			<table style="width: 100%; padding: 0px; min-height: 1000px; height: 1000px;" cellpadding="0" cellspacing="0">
				<tr>
					<td height="1%">
						<table cellpadding="0" cellspacing="0" style="width: 100%; padding: 0px;">
							<tr>
								<td>ComSite<br /></td>
								<td align="right" class="ui-widget">
									[ <h:outputText value="#{loginController.loggedUser.username}" /> ]
									<br />
									<h:form>
										<h:commandLink action="logout" actionListener="#{loginController.doLogout}" value="Logout" immediate="true" />
									</h:form>
								</td>
							</tr>
							<tr>
								<td colspan="2" class="ui-widget">
									<h:link value="Home" outcome="home" /> | 
									<h:link value="Categories" outcome="categories" /> | 
									<h:link value="Transactions" outcome="transactions" />| 
									<h:link value="Accounts" outcome="accounts" />| 
									<h:link value="Users" outcome="users" />| 
									<h:link value="Budget planning" outcome="budget" />| 
									<h:link value="Month history" outcome="history" />
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="98%" valign="top">
						<h:messages style="color:red;margin:8px;" />
						<ui:insert name="content">Default Content</ui:insert>
					</td>
				</tr>
				<tr>
					<td height="1%" class="ui-widget">
						<div class="footer">© Diamond Research Labs, R &amp; R </div>
					</td>
				</tr>
			</table>
		</div>
	</div>
		
	<ui:debug hotkey="d" rendered="true" />
</h:body>
</html>